import router from '@/router/index'
import store from '@/store/index'
import { globalRegister } from './global'

// 全局引用
// import ElementPlus from 'element-plus'

import 'normalize.css'
import './assets/css/index.less'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { setupStore } from '@/store/index'

import { createApp } from 'vue'
import App from './App.vue'

// .use(ElementPlus)
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(globalRegister)
app.use(store)
setupStore()
app.use(router)

app.mount('#app')
